package com.usian.wemedia.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.model.media.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {

    /**
     * 批量插入新闻和素材的关系数据
     * @parm materials 素材Id的集合
     * @parm newId 新闻Id
     * @parm type 引用类型
     * */
    void saveRelationsByContent(List<String> materials,Integer newsId,int type);

}
